import ajax from './ajax';
import devApi from './dev-api'
import prodApi from './prod-api'

const debugMode = true; // false 线上环境 true 开发环境

const api = (debugMode ? devApi : prodApi);

//获取人员列表
export const getPersonnelList = (id)=> ajax(api.apiBase + api.getPersonnelList + id);

//获取单位列表
export const getOfficelList = (paramas)=> ajax(api.apiBase + api.getOfficelList, paramas);

//根据条件获取区域数据
export const getRegionlDataList = (paramas)=> ajax(api.apiBase + api.getRegionlDataList, paramas);

